package com.chuf.springcloud.service.Impl;

import com.chuf.springcloud.dao.PaymentDao;
import com.chuf.springcloud.service.PaymentService;
import com.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: springCloud0920
 * @ClassName: PaymentServiceImpl
 * @description: 支付
 * @author: chuf
 * @create: 2020-09-20 20:09
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int createPayment(Payment payment) {
        return paymentDao.createPayment(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
